<div class="febs-container" id="incentiveRewardDetail-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="incentiveRewardDetail-edit-form">
            <fieldset class="layui-elem-field">
                <legend id="basic_field">基本信息</legend>
                <div class="layui-field-box">
                    <div class="layui-form-item febs-hide">
                        <label class="layui-form-label ">主键：</label>
                        <div class="layui-input-block">
                            <input type="text" name="rewardApplyId" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item febs-hide">
                        <label class="layui-form-label ">公司Id：</label>
                        <div class="layui-input-block">
                            <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                                   maxlength="32" >
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">奖励类型：</label>
                            <div th:switch="${incentiveRewardApply.rewardType}">
                                <div th:case="1" class="layui-input-block layui-input-block-html">个人奖励</div>
                                <div th:case="2" class="layui-input-block layui-input-block-html">活动奖励</div>
                            </div>


                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">奖励条款：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.rewardClauseRule}"></div>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">被奖励人：</label>
                            <div class="layui-input-block">
                                <table lay-filter="rewardUserTable" id="rewardUserTable" lay-data="{id: 'rewardUserTable'}"></table>
                            </div>
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">奖励原因：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.rewardReason}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">涉及附件：</label>
                            <div class="layui-input-block">
                                <div id="fileUpload">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </fieldset>
            <fieldset class="layui-elem-field">
                <legend id="reward_field">奖励信息</legend>
                <div class="layui-field-box">
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">金额奖励：</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="rewardAmountFlg"  lay-filter="rewardAmountFlg" lay-skin="switch" lay-text="是|否" disabled/>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">奖励金额：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.rewardAmount}"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">银行卡号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.bankCode}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">开户行名：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.bankName}"></div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">积分奖励：</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="rewardScoreFlg" lay-filter="rewardScoreFlg" lay-skin="switch" lay-text="是|否" disabled/>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">奖励积分：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.rewardScore}"></div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">奖品奖励：</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="rewardGoodsFlg" lay-filter="rewardGoodsFlg" lay-skin="switch" lay-text="是|否" disabled/>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">奖品列表：</label>
                            <div class="layui-input-block">
                                <table lay-filter="rewardGoodsTable" id="rewardGoodsTable" lay-data="{id: 'rewardGoodsTable'}"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>

            <fieldset class="layui-elem-field">
                <legend id="apply_field">开单信息</legend>
                <div class="layui-field-box">
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">开单人：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.applyRealName}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">开单时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.applyData}"></div>
                        </div>
                    </div>
                </div>
            </fieldset>

            <div th:if="${incentiveRewardApply.status > '2'}">
                <fieldset class="layui-elem-field">
                    <legend id="audit_field">审核信息</legend>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">审核人：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.auditRealName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">审核时间：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.auditDate}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">审核意见：</label>

                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.auditRemark}"></div>

                            </div>
                        </div>
                    </div>
                </fieldset>
            </div>
            <div th:if="${incentiveRewardApply.status > '4'}">
                <fieldset class="layui-elem-field">
                    <legend id="Issuance_field">签发信息</legend>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">签发人：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.issuanceRealName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">签发时间：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.issuanceDate}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">签发意见：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${incentiveRewardApply.issuanceRemark}"></div>
                            </div>
                        </div>
                    </div>
                </fieldset>
            </div>

            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="incentiveRewardDetail-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var incentiveRewardApply = [[${incentiveRewardApply}]];
</script>
<script th:src="@{/febs/js/incentive/incentiveRewardApply/incentiveRewardDetail.js(v=1)}"></script>